package com.acoreful.sample.web.security;

import java.io.Serializable;

@SuppressWarnings("serial")
public class ShiroUser implements Serializable {

	private String id;
	private String username;
	private String password;
	private String name;

	public ShiroUser() {

	}

	public ShiroUser(String id, String username, String password, String name) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 本函数输出将作为默认的<shiro:principal/>输出.
	 */
	@Override
	public String toString() {
		return name;
	}

}